
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8"/>
    <title>IconFont</title>
    <link rel="stylesheet" href="demo.css">
    <script src="iconfont.js"></script>

    <style type="text/css">
        .icon {
          /* 通过设置 font-size 来改变图标大小 */
          width: 1em; height: 1em;
          /* 图标和文字相邻时，垂直对齐 */
          vertical-align: -0.15em;
          /* 通过设置 color 来改变 SVG 的颜色/fill */
          fill: currentColor;
          /* path 和 stroke 溢出 viewBox 部分在 IE 下会显示
             normalize.css 中也包含这行 */
          overflow: hidden;
        }

    </style>
</head>
<body>
    <div class="main markdown">
        <h1>IconFont 图标</h1>
        <ul class="icon_lists clear">
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-thfx-jcgl"></use>
                    </svg>
                    <div class="name">综合</div>
                    <div class="fontclass">#icon-thfx-jcgl</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-thfx-xtcd"></use>
                    </svg>
                    <div class="name">疾病风险</div>
                    <div class="fontclass">#icon-thfx-xtcd</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-thfx-zjt"></use>
                    </svg>
                    <div class="name">箭头</div>
                    <div class="fontclass">#icon-thfx-zjt</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-thfx-xjt"></use>
                    </svg>
                    <div class="name">箭头</div>
                    <div class="fontclass">#icon-thfx-xjt</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-thfx-zhuanzhengdiaogangzhuangang"></use>
                    </svg>
                    <div class="name">转正 调岗 转岗</div>
                    <div class="fontclass">#icon-thfx-zhuanzhengdiaogangzhuangang</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-thfx-suojinindent2"></use>
                    </svg>
                    <div class="name">缩进</div>
                    <div class="fontclass">#icon-thfx-suojinindent2</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-thfx-suojinindent3"></use>
                    </svg>
                    <div class="name">缩进</div>
                    <div class="fontclass">#icon-thfx-suojinindent3</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-thfx-i-search"></use>
                    </svg>
                    <div class="name">search</div>
                    <div class="fontclass">#icon-thfx-i-search</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-thfx-fengxian"></use>
                    </svg>
                    <div class="name">风险预警</div>
                    <div class="fontclass">#icon-thfx-fengxian</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-thfx-star"></use>
                    </svg>
                    <div class="name">star</div>
                    <div class="fontclass">#icon-thfx-star</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-thfx-check"></use>
                    </svg>
                    <div class="name">check</div>
                    <div class="fontclass">#icon-thfx-check</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-thfx-frowno"></use>
                    </svg>
                    <div class="name">frown-o</div>
                    <div class="fontclass">#icon-thfx-frowno</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-thfx-meiyuan"></use>
                    </svg>
                    <div class="name">美元4</div>
                    <div class="fontclass">#icon-thfx-meiyuan</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-thfx-wodejijin"></use>
                    </svg>
                    <div class="name">我的基金</div>
                    <div class="fontclass">#icon-thfx-wodejijin</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-thfx-xiaosanjiaoxiangxia"></use>
                    </svg>
                    <div class="name">小三角-向下</div>
                    <div class="fontclass">#icon-thfx-xiaosanjiaoxiangxia</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-thfx-iccaretdown"></use>
                    </svg>
                    <div class="name">ic_caret - down</div>
                    <div class="fontclass">#icon-thfx-iccaretdown</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-thfx-kefu"></use>
                    </svg>
                    <div class="name">客户服务</div>
                    <div class="fontclass">#icon-thfx-kefu</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-thfx-jiaoxue"></use>
                    </svg>
                    <div class="name">远程教学</div>
                    <div class="fontclass">#icon-thfx-jiaoxue</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-thfx-wending"></use>
                    </svg>
                    <div class="name">稳定</div>
                    <div class="fontclass">#icon-thfx-wending</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-thfx-export"></use>
                    </svg>
                    <div class="name">export</div>
                    <div class="fontclass">#icon-thfx-export</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-thfx-edit"></use>
                    </svg>
                    <div class="name">edit</div>
                    <div class="fontclass">#icon-thfx-edit</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-thfx-left"></use>
                    </svg>
                    <div class="name">left</div>
                    <div class="fontclass">#icon-thfx-left</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-thfx-caretup"></use>
                    </svg>
                    <div class="name">caret-up</div>
                    <div class="fontclass">#icon-thfx-caretup</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-thfx-upload"></use>
                    </svg>
                    <div class="name">upload</div>
                    <div class="fontclass">#icon-thfx-upload</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-thfx-down"></use>
                    </svg>
                    <div class="name">down</div>
                    <div class="fontclass">#icon-thfx-down</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-thfx-shanchu"></use>
                    </svg>
                    <div class="name">删除</div>
                    <div class="fontclass">#icon-thfx-shanchu</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-thfx-jijin"></use>
                    </svg>
                    <div class="name">基金</div>
                    <div class="fontclass">#icon-thfx-jijin</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-thfx-home"></use>
                    </svg>
                    <div class="name">home</div>
                    <div class="fontclass">#icon-thfx-home</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-thfx-chacha"></use>
                    </svg>
                    <div class="name">叉叉</div>
                    <div class="fontclass">#icon-thfx-chacha</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-thfx-renwu"></use>
                    </svg>
                    <div class="name">任务</div>
                    <div class="fontclass">#icon-thfx-renwu</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-thfx-zhgl"></use>
                    </svg>
                    <div class="name">绩效管理</div>
                    <div class="fontclass">#icon-thfx-zhgl</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-thfx-bulb"></use>
                    </svg>
                    <div class="name">bulb</div>
                    <div class="fontclass">#icon-thfx-bulb</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-thfx-dsgl"></use>
                    </svg>
                    <div class="name">拟合曲线</div>
                    <div class="fontclass">#icon-thfx-dsgl</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-thfx-Reports"></use>
                    </svg>
                    <div class="name">报表</div>
                    <div class="fontclass">#icon-thfx-Reports</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-thfx-zhcx"></use>
                    </svg>
                    <div class="name">会籍信息</div>
                    <div class="fontclass">#icon-thfx-zhcx</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-thfx-zlgl"></use>
                    </svg>
                    <div class="name">指令管理</div>
                    <div class="fontclass">#icon-thfx-zlgl</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-thfx-sjt-"></use>
                    </svg>
                    <div class="name">箭头</div>
                    <div class="fontclass">#icon-thfx-sjt-</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-thfx-yjt"></use>
                    </svg>
                    <div class="name">箭头</div>
                    <div class="fontclass">#icon-thfx-yjt</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-thfx-bisai"></use>
                    </svg>
                    <div class="name">比赛</div>
                    <div class="fontclass">#icon-thfx-bisai</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-thfx-huoyuedu"></use>
                    </svg>
                    <div class="name">活跃度</div>
                    <div class="fontclass">#icon-thfx-huoyuedu</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-thfx-weibiaoti--"></use>
                    </svg>
                    <div class="name">个人设置</div>
                    <div class="fontclass">#icon-thfx-weibiaoti--</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-thfx-fengxianpinggu-"></use>
                    </svg>
                    <div class="name">风险评估</div>
                    <div class="fontclass">#icon-thfx-fengxianpinggu-</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-thfx-zichanpeizhi"></use>
                    </svg>
                    <div class="name">资产配置</div>
                    <div class="fontclass">#icon-thfx-zichanpeizhi</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-thfx-bars"></use>
                    </svg>
                    <div class="name">bars</div>
                    <div class="fontclass">#icon-thfx-bars</div>
                </li>
            
        </ul>


        <h2 id="symbol-">symbol引用</h2>
        <hr>

        <p>这是一种全新的使用方式，应该说这才是未来的主流，也是平台目前推荐的用法。相关介绍可以参考这篇<a href="">文章</a>
        这种用法其实是做了一个svg的集合，与另外两种相比具有如下特点：</p>
        <ul>
          <li>支持多色图标了，不再受单色限制。</li>
          <li>通过一些技巧，支持像字体那样，通过<code>font-size</code>,<code>color</code>来调整样式。</li>
          <li>兼容性较差，支持 ie9+,及现代浏览器。</li>
          <li>浏览器渲染svg的性能一般，还不如png。</li>
        </ul>
        <p>使用步骤如下：</p>
        <h3 id="-symbol-">第一步：引入项目下面生成的symbol代码：</h3>
        <pre><code class="lang-js hljs javascript"><span class="hljs-comment">&lt;script src="./iconfont.js"&gt;&lt;/script&gt;</span></code></pre>
        <h3 id="-css-">第二步：加入通用css代码（引入一次就行）：</h3>
        <pre><code class="lang-js hljs javascript">&lt;style type=<span class="hljs-string">"text/css"</span>&gt;
.icon {
   width: <span class="hljs-number">1</span>em; height: <span class="hljs-number">1</span>em;
   vertical-align: <span class="hljs-number">-0.15</span>em;
   fill: currentColor;
   overflow: hidden;
}
&lt;<span class="hljs-regexp">/style&gt;</span></code></pre>
        <h3 id="-">第三步：挑选相应图标并获取类名，应用于页面：</h3>
        <pre><code class="lang-js hljs javascript">&lt;svg <span class="hljs-class"><span class="hljs-keyword">class</span></span>=<span class="hljs-string">"icon"</span> aria-hidden=<span class="hljs-string">"true"</span>&gt;<span class="xml"><span class="hljs-tag">
  &lt;<span class="hljs-name">use</span> <span class="hljs-attr">xlink:href</span>=<span class="hljs-string">"#icon-thfx-xxx"</span>&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-name">use</span>&gt;</span>
</span>&lt;<span class="hljs-regexp">/svg&gt;
        </span></code></pre>
    </div>
</body>
</html>
